'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadFunction(Of TValue)( _ ByVal dataVariable As UADataVariable, _ ByVal readFunction As Func(Of UAAttributeData(Of TValue)), _ ByVal ParamArray arrayDimensions() As Integer _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim readFunction As Func(Of UAAttributeData(Of TValue)) Dim arrayDimensions() As Integer Dim value As UADataVariable value = UADataVariableExtension.ReadFunction(Of TValue)(dataVariable, readFunction, arrayDimensions)
[Extension()] [NotNull()] public static UADataVariable ReadFunction<TValue>( UADataVariable dataVariable, Func<UAAttributeData<TValue>> readFunction, params int[] arrayDimensions )
[Extension()] [NotNull()] public: static UADataVariable^ ReadFunctiongeneric<typename TValue> ( UADataVariable^ dataVariable, Func<UAAttributeData<TValue^>^>^ readFunction, ... array<int>^ arrayDimensions )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - readFunction
- The read function, i.e. the function that performs the read operation and returns the attribute data that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - arrayDimensions
- The size of each dimension of the array value.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TValue
- The type of the value of the data variable.
Return Value
This method never returns null
(Nothing
in Visual Basic).